package com.liuxia8.part7;

/**
 * inheritance syntax & properties
 * Created by weng.junjie on 2017/2/17.
 */
public class Cleanser {
    private String s="Cleanser";
    public void append(String a){
        s+=a;
    }
    public void dilute(){//稀释
        append("dilute()");
    }
    public void apply(){
        append("apply()");
    }
    public void scrub(){//用力擦洗
        append("scrub");
    }
    public String toString(){
        return s;
    }

    public static void main(String[] args) {
        Cleanser cleanser=new Cleanser();
        cleanser.dilute();
        cleanser.apply();
        cleanser.scrub();
        System.out.println(cleanser);
    }
}
